package com.yunc.modules.cms.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yunc.base.SuperMapper;
import com.yunc.modules.cms.entity.CmsArticle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 文章
 *
 * @author congcong tao
 * @date 2018/12/3 17:37
 */
@Mapper
public interface CmsArticleMapper extends SuperMapper<CmsArticle> {
    IPage<CmsArticle> pageInfo(Page<CmsArticle> page, @Param("title")String title, @Param("author")String author, @Param("categoryCode")String categoryCode);

    CmsArticle getEntityById(@Param("id")Long id);
}
